prune a tree's branches